﻿#ifndef __CIRCLESHAPE_H__
#define __CIRCLESHAPE_H__

#include "shape.h"

class CircleShape : public Shape
{
public:
	explicit CircleShape(QWidget* parent = nullptr);
	virtual void paintPixmap(QPainter& painter) override;
	virtual void paintCircle(QPainter& painter) override;
	virtual bool nodesDetect(const QPoint& point) override;
	virtual bool clickDetect(const QPoint& point) override;
	virtual void setNodeIndex(const QPoint& point) override;
	virtual void getNodePoint(QPoint& point, int index) const override;
	virtual ShapeType getType() const override;
	virtual double getRate() override;
};




#endif // !__CIRCLESHAPE_H__
